Congratulations, you've reached the end of the first module in this course. You should now be familiar
with the basics of how to interact with MySQL
database using Python. Let's take a moment
to recap some of the key skills you've gained
in this module's lessons. In the first lesson, you received an introduction to the course in which
you developed an understanding of how a connection is formed
between Python and MySQL database using an application programming
interface or API, also known as a driver. You now know that a
front-end Python application sends a connection requests
to the Connector API. The API forwards this connection to the backend MySQL database. A cursor connection can
then be established. Once the connection
is established, data can be sent between
Python and MySQL. You also learned about the
different APIs that can be used to create this
connection and Dash, as a database engineer, you will rely on the MySQL
connector Python API. During this first lesson, you also learned how to install and configure Python software on your system so that
you could create a connection between
Python and MySQL. You learned how to
download Python, make use of pip and import the different packages that
you require and you also learned how to use
aliasing to create custom names to facilitate easier communication
with the database. You then explored a working
example of how to connect to a MySQL database using
a Python client. You saw how the API
is imported into a Python program and can
be used with an alias, and you now know how to
make use of its modules and functionality using the
access or dot operator. You also know how to
pass arguments to a connector module like
usernames and passwords. You then ended this lesson with an overview of the process for creating tables in a
database using Python. You learned that you need to create a cursor object that you can use to communicate
with the MySQL database. The cursor object accesses
and execute module that carries queries as Python
strings to a MySQL database. Once your connections
are set up, you can then create data
in a MySQL database using Python like
databases and tables. In the final lesson
in this module, you learned about cursors. You learned that
cursors are used to indicate where data
is positioned in a MySQL database so that it can be accessed by
a Python client. The cursor lets you
read, retrieve and move through
individual records within the results
of your query. You then explored the key
characteristics or features of cursors that are particularly useful for database engineers. You learned that
cursors are read-only, so they can't be modified
and preserve results. You discovered that cursors
are also non-scrollable. They fetched records in order which helps
you to keep track of your current position when
processing individual records. You also found out that
cursors are asensitive. This means that they point
to the original data within the MySQL database
instead of a copy. You then explored
the code required to use a cursor in a
MySQL database. You can now use commands like DECLARE to declare a cursor, the OPEN commands to
call the cursor's name, the FETCH command
to fetch results and the CLOSE command
to close the cursor. You then explored an example of this process from
Little Lemons database. In the next part of this lesson, you explored different
cursor subclasses and you learned how they can be used to change or alter the
behavior of your cursors. You discovered that
cursor classes are a method of translating communications between
Python and a MySQL database. Classes take Python string
objects and parse them into MySQL-friendly commands
and data types that can be understood
by the database. You also explored
some common examples of cursor subclasses. Subclasses inherit the
properties of their parents cursor class like the
cursorraw subclass, the cursor dictionary subclass and the buffered cursor class. You also learned about the
interleaving SQL requests, which involve taking part of the SQL query to make
a subsequent request. You then explored the syntax
for creating and using subclasses and you also explored an example of subclasses from
the Little Lemon database. You should now be familiar
with the basics of how to interact with a MySQL
database using Python, including establishing a
MySQL Python connection and working with cursors. Great work. I look forward
to guiding you through the next module in which
you will learn how to perform queries in
MySQL using Python.